package com.example.system.dao;

import com.example.system.dto.AdminResult;
import com.example.system.model.Admin;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface AdminDao {
    int deleteByPrimaryKey(Integer id);

    int insert(Admin record);

    int insertSelective(Admin record);

    Admin selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Admin record);

    int updateByPrimaryKey(Admin record);

    Admin selectByName(@Param("name") String name);

    Admin selectByUserName(@Param("username") String username);

    void deleteBatchByPrimaryKeys(@Param("ids") List<Integer> ids);

    List<AdminResult> selectAll();

}